package org.example.service;


import org.example.Inventory;
import org.example.Order;
import org.example.ResultMap;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
@FeignClient(name = "InventoryService")
public interface OrderFeignService {
    @RequestMapping("/inventory/reduceinventor")
    public ResultMap updateInventory(@RequestBody Order order);
}
